package com.upup.util;

import java.util.Date;
import java.text.SimpleDateFormat;

/**
 * Author: zhiye
 * Description:
 */
public class ATool {
    public static String getTime() {
        Date date=  new Date();
        SimpleDateFormat sd= new SimpleDateFormat("yyyyMMddHHmmss");
        String updateTime = sd.format(date);
        return updateTime;
    }
    public static String getTime1() {
        Date date1=  new Date();
        SimpleDateFormat sd= new SimpleDateFormat("yyyy-MM-dd");
        String updateTime1 = sd.format(date1);
        return updateTime1;
    }
}
